package cn.design.realize;

/**
 * @author dlq
 * @description  领导
 *        实现了Element中的accept()方法，调用Vistor的访问方法以便完成对一个元素的操作
 * @date 2020/10/20 10:25
 * @since 1.0
 */
public class LeaderConcreteElement implements Element{
    //姓名
    private String name;
    //薪水
    private String money;

    public LeaderConcreteElement(String name, String money) {
        this.name = name;
        this.money = money;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }


}
